package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.ContractPayment;

/**
 * 合同收款-CRUDMapper接口
 *
 * @author ruoyi
 * @date 2022-08-02
 */
public interface ContractPaymentMapper
{
    /**
     * 查询合同收款-CRUD
     *
     * @param paymentId 合同收款-CRUD主键
     * @return 合同收款-CRUD
     */
    public ContractPayment selectContractPaymentByPaymentId(Long paymentId);

    /**
     * 查询合同收款-CRUD列表
     *
     * @param contractPayment 合同收款-CRUD
     * @return 合同收款-CRUD集合
     */
    public List<ContractPayment> selectContractPaymentList(ContractPayment contractPayment);

    /**
     * 新增合同收款-CRUD
     *
     * @param contractPayment 合同收款-CRUD
     * @return 结果
     */
    public int insertContractPayment(ContractPayment contractPayment);

    /**
     * 修改合同收款-CRUD
     *
     * @param contractPayment 合同收款-CRUD
     * @return 结果
     */
    public int updateContractPayment(ContractPayment contractPayment);

    /**
     * 删除合同收款-CRUD
     *
     * @param paymentId 合同收款-CRUD主键
     * @return 结果
     */
    public int deleteContractPaymentByPaymentId(Long paymentId);

    /**
     * 批量删除合同收款-CRUD
     *
     * @param paymentIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteContractPaymentByPaymentIds(Long[] paymentIds);
}
